﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="BusinessPackage.ascx.cs" Inherits="Administrator_AdminControl_BusinessPackage" %>

<div class="dasboard" style="width:100%">
    <div class="staticTitle">Gói doanh nghiệp VIP</div>
    <div class="style-padding1">
        <table style="width:40%;padding-bottom:20px">
            <tr>
                <td>Tên</td>
                <td><input type="text" id="txtName" runat="server" /></td>
            </tr>
            <tr>
                <td>Số điểm</td>
                <td><input type="text" id="txtPoint" runat="server" maxlength="7" /></td>
            </tr>
            <tr>
                <td>Số ngày sử dụng</td>
                <td><asp:TextBox ID="txtTime" runat="server" MaxLength="3" /> (ngày)</td>
                <td ></td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <asp:Button ID="btnSave" runat="server" Text="Lưu" onclick="btnSave_Click" />
                </td>
            </tr>
        </table>
        <asp:Repeater ID="rptPackageVIP" runat="server" 
            onitemcommand="rptPackageVIP_ItemCommand">
            <HeaderTemplate>
                <table class="headertable" cellpadding="0">
                    <tr>
                        <th style="width:10%;">STT</th>
                        <th style="width:35%">Tên</th>
                        <th style="width:20%">Điểm</th>
                        <th style="width:15%">Thời gian (ngày)</th>
                        <th>Thao tác</th>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                    <tr>
                        <td style="text-align:center;"><%# Container.ItemIndex+1 %></td>
                        <td><%# DataBinder.Eval(Container.DataItem,"PointBackage_Name") %></td>
                        <td><%# DataBinder.Eval(Container.DataItem,"PointBackage_Point") %></td>
                        <td><%# DataBinder.Eval(Container.DataItem,"PointBackage_DayNo") %> </td>
                        <td style="text-align:center;"><asp:ImageButton ID="btnDeletePoint" runat="server" ImageUrl="~/images/Admin/icon_delete.gif.png" CommandName="delete"
                             CommandArgument='<%# DataBinder.Eval(Container.DataItem,"PointBackage_Id") %>' OnClientClick="return confirm('Bạn có chắc muốn xóa không?')" /></td>
                    </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
    </div>
</div><!--End dasboard-->
